﻿@model tutors_clus.Models.annoucement

@{
    ViewBag.Title = "Tạo thông báo";
    Layout = "~/Views/Shared/_Layout_Private.cshtml";
}
<script src="~/Plugin/ckeditor/ckeditor.js"></script>
<div id="cleft">@Html.Partial("_menu_admin")</div>
<div id="cright">
    <div id="frm_detail">
<h3>Tạo thông báo</h3>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>annoucement</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.title_ann)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.title_ann)
            @Html.ValidationMessageFor(model => model.title_ann)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.file_attach_ann)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.file_attach_ann)
            @Html.ValidationMessageFor(model => model.file_attach_ann)*@
            <input type="file" name="file_upload" id="file_upload">
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.writer_ann)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.writer_ann)
            @Html.ValidationMessageFor(model => model.writer_ann)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.detail_ann)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.detail_ann)
            @Html.ValidationMessageFor(model => model.detail_ann)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.status_ann)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.status_ann)
            @Html.ValidationMessageFor(model => model.status_ann)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Trở về", "Show_annou")
</div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
</div>
<script>
    CKEDITOR.replace("detail_ann", { height: 300 });
    CKEDITOR.config.toolbar = [
        { name: 'styles', items: ['Font', 'FontSize'] },
        { name: 'colors', items: ['TextColor', 'BGColor'] },
        { name: 'clipboard', items: ['Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
        
        { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', ] },
        { name: 'insert', items: ['HorizontalRule', 'Smiley', 'SpecialChar'] },
        { name: 'paragraph1', items: ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'] },
        { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
        { name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
    ];
</script>